package demo.kafka.sb.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageHeaders;

/**
 * @author 千里明月
 * @date 2021/5/5 12:30
 */
@Data
@AllArgsConstructor
public class User implements Message {
    private String id;
    private String name;
    private Integer age;

    public Object getPayload() {
        return toString();
    }

    public MessageHeaders getHeaders() {
        return null;
    }
}
